package com.nuoniu.sibanyun.mapper.cm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.cm.CmContractStage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 合同阶段 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2021-10-20
 */
@Component
@Mapper
public interface CmContractStageMapper extends BaseMapper<CmContractStage> {

    /**
     * 根据分组id获取阶段列表
     * @author 小啊刚
     * @date 2021-10-21
     */
    @Select("select * form cm_contract_stage where group_id=#{id}")
    List<CmContractStage> getByGroupId(Long id);
}
